import request from "../util/request";

// 教师管理相关接口

// 教师管理 - 查询教师列表
export const selectTeacherList = function (params = {}) {
  return request({
    url: "/admin/teacher",
    method: "get",
    params: params,
  });
};

// 根据ID删除教师
export const deleteTeacherById = function (params = {}) {
  return request({
    url: "/admin/teacher",
    method: "delete",
    params: params,
  });
};

// 添加新教师
export const insertNewTeacher = function (params = {}) {
  return request({
    url: "/admin/teacher",
    method: "post",
    data: params,
  });
};
